﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Logging;

namespace SPlusres.Business
{
    public class SystemLog
    {
        /// <summary>
        /// Write System Log
        /// </summary>
        /// <param name="ex"></param>
        public static void WriteLog(Exception ex)
        {
            Logger.Write(new LogEntry() { Message = ex.StackTrace, Title = ex.Message });
        }
    }
}
